package com.tsd.system.dao;

import com.tsd.common.vo.BatchDeleteLogicVo;
import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysGroupRoleResource;
import com.tsd.system.entity.SysGroupRoleResourceExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysGroupRoleResourceMapper
 *
 * @author huawei
 * @date 2020/04/16 12:51:37
 */
public interface SysGroupRoleResourceMapper {

    SysGroupRoleResource selectByPrimaryKey(Long id);

    SysGroupRoleResourceExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(SysGroupRoleResource record);

    int insertSelective(SysGroupRoleResource record);

    int updateByPrimaryKey(SysGroupRoleResource record);

    int updateByPrimaryKeySelective(SysGroupRoleResource record);

    List<SysGroupRoleResourceExt> selectByEntity(SysGroupRoleResource record);

    List<SysGroupRoleResourceExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysGroupRoleResourceExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysGroupRoleResourceExt> selectByParams(@Param("params") Map<String, Object> params);

    void deleteByGroupSidRoleSid(@Param("groupSid") String groupSid, @Param("roleSid") String roleSid);

    void deleteByIdList(BatchDeleteLogicVo logicVo);

    void insertList(List<SysGroupRoleResourceExt> list);
}
